<?php
use yii\helpers\Html;
use yii\helpers\Url;
?>

    <div class="right cont">
      <div class="cont1">
        <div class="basicInfo1">
          <img src="http://static.tianpinwang.com.cn/file/2016/07/21/8v1yj43vr5p3avdn.jpg" alt="" class="userImge">

          <p class="">
            <span class="name"><?=Html::encode($user_info['phone'])?></span>
            <!--普通会员-->
            <!--<span class="userLevel inlineBlock">普通会员</span></p>-->
          <!--企业会员-->
          <!-- <span class="userLeve2 inlineBlock"><i class="iconfont icon-v"></i>企业会员</span></p> -->

          <ul class="top2">
            <li class="firstLi">可用余额： <em>￥<?=Html::encode($user_info['available_money'])?></em></li>
           <!--  <li><i class="iconfont icon-xinfeng"></i>我的消息：<em>3</em></li> -->
            <a href="<?= Url::toRoute(['account/shipaddress'])?>" style="color:#000000"><li>我的收货地址</li></a>
          </ul>
        </div>
        <ul class="basicInfo2">
          <?php foreach ($count as $key => $v): ?>
              <li><a href="/order?s=<?=$key?>" <?php if($key == 1) echo "class='hasMsg'"?>><?=Html::encode($v['name'])?> <?=Html::encode($v['num'])?></a></li>
          <?php endforeach ?>
        </ul>
      </div>
     <!-- <div class="cont3">
        <h1 class="tt0">我收藏的货品 <span class="txt0">促销中商品3</span><a  href="" class="right txt0 loonkMore">查看全部</a></h1>
       <p class="nullInfo">您还没有收藏过商品，先去逛逛吧</p>
      </div>
      <div class="cont4">
        <h1 class="tt0">最近浏览<a href="" class="more inlineBlock right">更多</a></h1>
      <p class="nullInfo">您还没有浏览过货品，先去逛逛吧 <br/><a href="" class="btn-small-default">先去逛逛</a></p>
      </div> -->
    </div>
  </div>
</div>

<script>
  $(function(){

    if($('.messageInfo').text().length>1){
      $('.messageInfo').addClass('bigNumber');
    };
    $('.cartList').children('li').on('mouseenter',function(){
      $(this).find('.close').css('display','block');
    }).on('mouseleave',function(){
      $(this).find('.close').css('display','none');
    });
    $('.cartList').find('.close').on('click',function(e){
      e.preventDefault();
      $(this).parent().parent().remove();
    });
    $('.shopping').on('mouseover',function(){
      $('.popList').css('display','block');
    }).on('mouseout',function(){
      $('.popList').css('display','none');
    });
    $('.logged').on('mouseenter',function(){
      $('.popNav').css('display','block');
    }).on('mouseleave',function(){
      $('.popNav').css('display','none');
    });




  })
</script>
</body>
</html>
